package top.withu.gaof.freehope.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import top.withu.gaof.freehope.utils.PKUtils;

/**
 * @author Gaofan
 * @date 2018年12月27日 下午3:17:05
 * @describe
 */
@Entity
@Table(name = "gf_mini_photo")
public class PhotoPath {

	@Id
	@Column(name = "id")
	private String id;

	@Column(name = "type")
	private String type;

	@Column(name = "user")
	private String user;

	@Column(name = "file_name")
	private String fileName;

	@Column(name = "file_path")
	private String filePath;

	@Column(name = "create_time")
	private Date createTime;

	@Column(name = "is_expire")
	private Boolean isExpire;

	public PhotoPath() {
		super();
		this.id = PKUtils.getPK();
		this.createTime = new Date();
		this.isExpire = Boolean.FALSE;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Boolean getIsExpire() {
		return isExpire;
	}

	public void setIsExpire(Boolean isExpire) {
		this.isExpire = isExpire;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

}
